From 77af399e7ff34b3978f5271843e38bce1d66077d Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 22 Apr 2010 09:42:37 +0100 Subject: [PATCH] xend: don't drop device config on domain start failure If domain creation in xend fails before devices are configured, e.g. insufficient memory, device config is dropped from xend's managed domain config. Once xend is restarted, the domain's devices are lost. This patch fixes a bug in XendConfig where only the device controller was consulted for device configuration. Signed-off-by: Jim Fehlig --- tools/python/xen/xend/XendConfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index c468b19252..57903a57fc 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -1171,8 +1171,8 @@ class XendConfig(dict): config.append(['VDI', dev_cfg.get('VDI', '')]) sxpr.append(['device', config]) + found = True - found = True except: log.exception("dumping sxp from device controllers") pass -- 2.30.2